﻿<Window x:Class="UniversalEditor.Modules.NewFileModule.NewFileView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:newFileModule="clr-namespace:UniversalEditor.Modules.NewFileModule"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" d:DataContext="{x:Static newFileModule:NewFileViewModel.Designer}"
        Title="New File" SizeToContent="WidthAndHeight" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner"
		ShowInTaskbar="False">
    <Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="Auto" MinWidth="200"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<ComboBox Grid.Column="1" Margin="3" VerticalAlignment="Center" ItemsSource="{Binding AllFormats}" SelectedItem="{Binding CurrentFormat}" DisplayMemberPath="DisplayName" TabIndex="0"/>
		<TextBlock Margin="3" Text="Type:" VerticalAlignment="Center"/>
		<StackPanel Grid.ColumnSpan="2" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
			<Button Content="OK" IsDefault="True" Click="OnOkClick" Margin="5" MinWidth="75"/>
			<Button Content="Cancel" IsCancel="True" Click="OnCloseClick" Margin="5" MinWidth="75"/>
		</StackPanel>

	</Grid>
</Window>
